.class public Les/aj;
.super Lcom/estrongs/android/ui/dialog/q;
.source "FileOverwriteOptionDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/aj$c;
    }
.end annotation


# instance fields
.field private a:Landroid/view/View;

.field private b:Z

.field private c:Les/aj$c;

.field private d:Landroid/widget/CheckBox;


# direct methods
.method public constructor <init>(Landroid/content/Context;Les/aj$c;Z)V
    .locals 3

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/aj;->b:Z

    const/4 v1, 0x0

    .line 3
    iput-object v1, p0, Les/aj;->c:Les/aj$c;

    .line 4
    iput-object p2, p0, Les/aj;->c:Les/aj$c;

    .line 5
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const v2, 0x7f0c0165

    .line 6
    invoke-virtual {p2, v2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    iput-object p2, p0, Les/aj;->a:Landroid/view/View;

    .line 7
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    .line 8
    iget-object p2, p0, Les/aj;->a:Landroid/view/View;

    const v1, 0x7f0901ea

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/CheckBox;

    iput-object p2, p0, Les/aj;->d:Landroid/widget/CheckBox;

    if-nez p3, :cond_0

    const/16 p3, 0x8

    .line 9
    invoke-virtual {p2, p3}, Landroid/widget/CheckBox;->setVisibility(I)V

    :cond_0
    const p2, 0x7f110662

    .line 10
    invoke-virtual {p1, p2}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p2

    new-instance p3, Les/aj$a;

    invoke-direct {p3, p0}, Les/aj$a;-><init>(Les/aj;)V

    invoke-virtual {p0, p2, p3}, Lcom/estrongs/android/ui/dialog/q;->setConfirmButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    const p2, 0x7f1102a1

    .line 11
    invoke-virtual {p1, p2}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    new-instance p2, Les/aj$b;

    invoke-direct {p2, p0}, Les/aj$b;-><init>(Les/aj;)V

    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/ui/dialog/q;->setCancelButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    .line 12
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->setCancelable(Z)V

    return-void
.end method

.method static synthetic a(Les/aj;Z)Z
    .locals 0

    .line 1
    iput-boolean p1, p0, Les/aj;->b:Z

    return p1
.end method


# virtual methods
.method public dismiss()V
    .locals 3

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    .line 2
    iget-object v0, p0, Les/aj;->c:Les/aj$c;

    iget-boolean v1, p0, Les/aj;->b:Z

    iget-object v2, p0, Les/aj;->d:Landroid/widget/CheckBox;

    invoke-virtual {v2}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v2

    invoke-interface {v0, v1, v2}, Les/aj$c;->a(ZZ)V

    return-void
.end method
